<?php
// http://mei94.com/shiba/api/?c=do-test
//  http_load -p 1000 -s 10 urls.txt
exit;
function _setId(){
    $name=['o','l','o','l','b'];
    $name2=['a','b','c','u','e','f','g','h','x','j','w','k'];
    for ($j=1;$j<10;$j++){
        $getName=NULL;
        for ($i=0;$i<2;$i++){
            $rand=rand(0,4);
            $getName.=$name[$rand];
        }
        $rand=rand(0,6);
        $getName.=$name2[$rand];
        echo "'",$getName,"',";
    }
    
}

_setId();
exit;
$userId=rand(1,99999999);
$tId=1;
$tData='我们';

$getData=array($tId=>$tData);
file_put_contents('../data/daan/'.$userId.'-'.$tId.'.txt', json_encode($getData, JSON_UNESCAPED_UNICODE));
include '../c/config.php';
$mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
if (!$mysqli->set_charset("utf8")) {printf("Error loading character set utf8: %s\n", $mysqli->error);}
$mysqli->query("INSERT INTO `uinfo` (`id`, `name`, `idcard`, `qu`, `school`, `nianji`, `phone`) VALUES (NULL, '".date("Y-m-d H:i:s")."', '3623011691455', '徐汇区', '上海学校2174', '四年级', '15685754562')");
$mysqli->close();
echo 1;